# Maintainer: intothegnu <intothegnu@protonmail.com>

pkgname="mpv-scripts-intothegnu-git"
pkgver=1.0.r2.gcb10d23
pkgrel=1
install="mpv-scripts-intothegnu.install"
pkgdesc="MPV gallery view for chapters and playlists."
groups=('intothegnu-config')
arch=('any')
depends=('mpv' 'bzip2' 'imagemagick')
license=('BSD')
url="https://notabug.org/BezierQuadratic/mpv-scripts"
source=("git+https://notabug.org/BezierQuadratic/mpv-scripts.git")
md5sums=('SKIP')

pkgver(){
	cd "mpv-scripts"
	git describe --long --tags | sed 's/-/.r/;s/-/./'
}

package(){
	mkdir -p $pkgdir/usr/lib/mpv/mpv-scripts-ITGC/
	install -m 644 $srcdir/mpv-scripts/*.lua $pkgdir/usr/lib/mpv/mpv-scripts-ITGC
}

